package com.fit.dao.homeworkRecords;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.homeworkRecords.HomeworkRecords;
import com.fit.entities.user.User;

public interface HomeworkRecordsDAO {

	@CommitAfter
	public boolean save(HomeworkRecords newHomeworkRecords);

	@CommitAfter
	public boolean delete(HomeworkRecords homeworkRecords);

	@CommitAfter
	public boolean update(HomeworkRecords homeworkRecords);

	public List<HomeworkRecords> findAll();

	public HomeworkRecords findByIdHomeworkAndIdStudent(int homeworkId, int studentId);

	public HomeworkRecords findByID(Long id);

	@CommitAfter
	public boolean deleteByID(Long id);
}
